package dto

import (
	"agent-list---web-development/list/model"
)

type UserDto struct {
	Name string `json:"username"`
	Acc  string `json:"account"`
	Ava  int    `json:"avatar"`
}

func ToUserDto(user model.User) UserDto {
	return UserDto{
		Name: user.UserName,
		Acc:  user.Account,
		Ava:  user.Avatar,
	}
}
